package com.fates.ucenter;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class FatesUcenterServiceApplication {

	@Autowired
	DataSource dataSource;
	
	public static void main(String[] args) {
		SpringApplication.run(FatesUcenterServiceApplication.class, args);
	}

	/**
	 * 查看用了什么数据库连接池
	 * @param args
	 * @throws Exception
	 */
	public void run(String... args) throws Exception{
		System.out.println("DATASOURCE="+dataSource);
	}
}
